PROJECT = StudentCourseSystem
TARGET = $(PROJECT).out

SRCS = main.c \
       globals.c \
       StudentModule/student.c \
       CourseModule/course.c \
       IOModule/file_io.c

OBJS = $(SRCS:.c=.o)

CC = gcc
CFLAGS = -Wall -g -IInclude -I.
LDFLAGS =

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CC) -o $@ $(OBJS) $(LDFLAGS)

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -f $(OBJS) $(TARGET) log.log

.PHONY: all clean
